import Http from "../Http";
import {stringify} from "qs";

// 商品增删改查
export default {
    lists(data = {}) {
        return Http.get("/crs/car", data)
    },
    info(id) {
        return Http.get(`/crs/car/${id}`)
    },
    destroy(id) {
        return Http.delete(`/crs/car/${id}`)
    },

    create(data) {
        return Http.post("/crs/car/newCar", stringify(data))
    },
    update(data) {
        return Http.put("/crs/car", stringify(data))
    }
}
